import request from '@/utils/request'

// 查询我的钱包列表
export function listPurse(data) {
  return request({
    url: '/system/purse/purseList?userId='+data,
    method: 'post',
  })
}

// 查询我的钱包详细
export function getPurse(purseId) {
  return request({
    url: '/system/purse/' + purseId,
    method: 'get'
  })
}

// 新增我的钱包
export function addPurse(data) {
  return request({
    url: '/system/purse',
    method: 'post',
    data: data
  })
}

// 修改我的钱包
export function updatePurse(data) {
  return request({
    url: '/system/purse',
    method: 'put',
    data: data
  })
}

// 删除我的钱包
export function delPurse(purseId) {
  return request({
    url: '/system/purse/' + purseId,
    method: 'delete'
  })
}
